# 1 "main.c"
# 1 "C:\\Users\\Server\\Documents\\NetBeansProjects\\Tubes5//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "main.c"
# 11 "main.c"
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 1 3
# 44 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/inttypes.h" 1 3
# 37 "c:/winavr-20100110/lib/gcc/../../avr/include/inttypes.h" 3
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/stdint.h" 1 3
# 121 "c:/winavr-20100110/lib/gcc/../../avr/include/stdint.h" 3
typedef int int8_t __attribute__((__mode__(__QI__)));
typedef unsigned int uint8_t __attribute__((__mode__(__QI__)));
typedef int int16_t __attribute__ ((__mode__ (__HI__)));
typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));

typedef int int64_t __attribute__((__mode__(__DI__)));
typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
# 142 "c:/winavr-20100110/lib/gcc/../../avr/include/stdint.h" 3
typedef int16_t intptr_t;




typedef uint16_t uintptr_t;
# 159 "c:/winavr-20100110/lib/gcc/../../avr/include/stdint.h" 3
typedef int8_t int_least8_t;




typedef uint8_t uint_least8_t;




typedef int16_t int_least16_t;




typedef uint16_t uint_least16_t;




typedef int32_t int_least32_t;




typedef uint32_t uint_least32_t;







typedef int64_t int_least64_t;






typedef uint64_t uint_least64_t;
# 213 "c:/winavr-20100110/lib/gcc/../../avr/include/stdint.h" 3
typedef int8_t int_fast8_t;




typedef uint8_t uint_fast8_t;




typedef int16_t int_fast16_t;




typedef uint16_t uint_fast16_t;




typedef int32_t int_fast32_t;




typedef uint32_t uint_fast32_t;







typedef int64_t int_fast64_t;






typedef uint64_t uint_fast64_t;
# 273 "c:/winavr-20100110/lib/gcc/../../avr/include/stdint.h" 3
typedef int64_t intmax_t;




typedef uint64_t uintmax_t;
# 38 "c:/winavr-20100110/lib/gcc/../../avr/include/inttypes.h" 2 3
# 77 "c:/winavr-20100110/lib/gcc/../../avr/include/inttypes.h" 3
typedef int32_t int_farptr_t;



typedef uint32_t uint_farptr_t;
# 45 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 2 3
# 1 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stdarg.h" 1 3 4
# 43 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 105 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stdarg.h" 3 4
typedef __gnuc_va_list va_list;
# 46 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 2 3



# 1 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stddef.h" 1 3 4
# 214 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stddef.h" 3 4
typedef unsigned int size_t;
# 50 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 2 3
# 242 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
struct __file {
 char *buf;
 unsigned char unget;
 uint8_t flags;
# 261 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
 int size;
 int len;
 int (*put)(char, struct __file *);
 int (*get)(struct __file *);
 void *udata;
};
# 405 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern struct __file *__iob[];
# 417 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern struct __file *fdevopen(int (*__put)(char, struct __file*), int (*__get)(struct __file*));
# 434 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int fclose(struct __file *__stream);
# 608 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int vfprintf(struct __file *__stream, const char *__fmt, va_list __ap);





extern int vfprintf_P(struct __file *__stream, const char *__fmt, va_list __ap);






extern int fputc(int __c, struct __file *__stream);




extern int putc(int __c, struct __file *__stream);


extern int putchar(int __c);
# 649 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int printf(const char *__fmt, ...);





extern int printf_P(const char *__fmt, ...);







extern int vprintf(const char *__fmt, va_list __ap);





extern int sprintf(char *__s, const char *__fmt, ...);





extern int sprintf_P(char *__s, const char *__fmt, ...);
# 685 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int snprintf(char *__s, size_t __n, const char *__fmt, ...);





extern int snprintf_P(char *__s, size_t __n, const char *__fmt, ...);





extern int vsprintf(char *__s, const char *__fmt, va_list ap);





extern int vsprintf_P(char *__s, const char *__fmt, va_list ap);
# 713 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int vsnprintf(char *__s, size_t __n, const char *__fmt, va_list ap);





extern int vsnprintf_P(char *__s, size_t __n, const char *__fmt, va_list ap);




extern int fprintf(struct __file *__stream, const char *__fmt, ...);





extern int fprintf_P(struct __file *__stream, const char *__fmt, ...);






extern int fputs(const char *__str, struct __file *__stream);




extern int fputs_P(const char *__str, struct __file *__stream);





extern int puts(const char *__str);




extern int puts_P(const char *__str);
# 762 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern size_t fwrite(const void *__ptr, size_t __size, size_t __nmemb,
         struct __file *__stream);







extern int fgetc(struct __file *__stream);




extern int getc(struct __file *__stream);


extern int getchar(void);
# 810 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int ungetc(int __c, struct __file *__stream);
# 822 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern char *fgets(char *__str, int __size, struct __file *__stream);






extern char *gets(char *__str);
# 840 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern size_t fread(void *__ptr, size_t __size, size_t __nmemb,
        struct __file *__stream);




extern void clearerr(struct __file *__stream);
# 857 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int feof(struct __file *__stream);
# 868 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
extern int ferror(struct __file *__stream);






extern int vfscanf(struct __file *__stream, const char *__fmt, va_list __ap);




extern int vfscanf_P(struct __file *__stream, const char *__fmt, va_list __ap);







extern int fscanf(struct __file *__stream, const char *__fmt, ...);




extern int fscanf_P(struct __file *__stream, const char *__fmt, ...);






extern int scanf(const char *__fmt, ...);




extern int scanf_P(const char *__fmt, ...);







extern int vscanf(const char *__fmt, va_list __ap);







extern int sscanf(const char *__buf, const char *__fmt, ...);




extern int sscanf_P(const char *__buf, const char *__fmt, ...);
# 938 "c:/winavr-20100110/lib/gcc/../../avr/include/stdio.h" 3
static __inline__ int fflush(struct __file *stream __attribute__((unused)))
{
 return 0;
}
# 12 "main.c" 2
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 1 3
# 47 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
# 1 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stddef.h" 1 3 4
# 326 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stddef.h" 3 4
typedef int wchar_t;
# 48 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 2 3
# 68 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
typedef struct {
 int quot;
 int rem;
} div_t;


typedef struct {
 long quot;
 long rem;
} ldiv_t;


typedef int (*__compar_fn_t)(const void *, const void *);
# 106 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern void abort(void) __attribute__((__noreturn__));




extern int abs(int __i) __attribute__((__const__));
# 120 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern long labs(long __i) __attribute__((__const__));
# 143 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern void *bsearch(const void *__key, const void *__base, size_t __nmemb,
       size_t __size, int (*__compar)(const void *, const void *));







extern div_t div(int __num, int __denom) __asm__("__divmodhi4") __attribute__((__const__));





extern ldiv_t ldiv(long __num, long __denom) __asm__("__divmodsi4") __attribute__((__const__));
# 175 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern void qsort(void *__base, size_t __nmemb, size_t __size,
    __compar_fn_t __compar);
# 208 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern long strtol(const char *__nptr, char **__endptr, int __base);
# 242 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern unsigned long strtoul(const char *__nptr, char **__endptr, int __base);
# 254 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern long atol(const char *__s) __attribute__((__pure__));
# 266 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern int atoi(const char *__s) __attribute__((__pure__));
# 278 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern void exit(int __status) __attribute__((__noreturn__));
# 290 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern void *malloc(size_t __size) __attribute__((__malloc__));






extern void free(void *__ptr);




extern size_t __malloc_margin;




extern char *__malloc_heap_start;




extern char *__malloc_heap_end;






extern void *calloc(size_t __nele, size_t __size) __attribute__((__malloc__));
# 338 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern void *realloc(void *__ptr, size_t __size) __attribute__((__malloc__));

extern double strtod(const char *__nptr, char **__endptr);

extern double atof(const char *__nptr);
# 364 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern int rand(void);



extern void srand(unsigned int __seed);






extern int rand_r(unsigned long *__ctx);
# 406 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern char *itoa(int __val, char *__s, int __radix);
# 434 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern char *ltoa(long int __val, char *__s, int __radix);
# 460 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern char *utoa(unsigned int __val, char *__s, int __radix);
# 486 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern char *ultoa(unsigned long int __val, char *__s, int __radix);
# 504 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern long random(void);




extern void srandom(unsigned long __seed);







extern long random_r(unsigned long *__ctx);
# 563 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern char *dtostre(double __val, char *__s, unsigned char __prec,
       unsigned char __flags);
# 580 "c:/winavr-20100110/lib/gcc/../../avr/include/stdlib.h" 3
extern char *dtostrf(double __val, signed char __width,
                     unsigned char __prec, char *__s);
# 13 "main.c" 2
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 1 3
# 99 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 3
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/sfr_defs.h" 1 3
# 100 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3
# 270 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 3
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/iom8.h" 1 3
# 271 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3
# 408 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 3
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/portpins.h" 1 3
# 409 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3

# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/common.h" 1 3
# 411 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3

# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/version.h" 1 3
# 413 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3


# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/fuse.h" 1 3
# 248 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/fuse.h" 3
typedef struct
{
    unsigned char low;
    unsigned char high;
} __fuse_t;
# 416 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3


# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/lock.h" 1 3
# 419 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/io.h" 2 3
# 14 "main.c" 2
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/eeprom.h" 1 3
# 410 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/eeprom.h" 3
# 1 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stddef.h" 1 3 4
# 152 "c:\\winavr-20100110\\bin\\../lib/gcc/avr/4.3.3/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 411 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/eeprom.h" 2 3
# 497 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/eeprom.h" 3
uint8_t __eerd_byte_m8 (const uint8_t *__p) __attribute__((__pure__));




uint16_t __eerd_word_m8 (const uint16_t *__p) __attribute__((__pure__));




uint32_t __eerd_dword_m8 (const uint32_t *__p) __attribute__((__pure__));




float __eerd_float_m8 (const float *__p) __attribute__((__pure__));





void __eerd_block_m8 (void *__dst, const void *__src, size_t __n);





void __eewr_byte_m8 (uint8_t *__p, uint8_t __value);




void __eewr_word_m8 (uint16_t *__p, uint16_t __value);




void __eewr_dword_m8 (uint32_t *__p, uint32_t __value);




void __eewr_float_m8 (float *__p, float __value);





void __eewr_block_m8 (const void *__src, void *__dst, size_t __n);





void __eeupd_byte_m8 (uint8_t *__p, uint8_t __value);




void __eeupd_word_m8 (uint16_t *__p, uint16_t __value);




void __eeupd_dword_m8 (uint32_t *__p, uint32_t __value);




void __eeupd_float_m8 (float *__p, float __value);





void __eeupd_block_m8 (const void *__src, void *__dst, size_t __n);
# 15 "main.c" 2
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/avr/interrupt.h" 1 3
# 16 "main.c" 2
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/util/setbaud.h" 1 3
# 17 "main.c" 2
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h" 1 3
# 39 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h" 3
# 1 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay_basic.h" 1 3
# 65 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay_basic.h" 3
static inline void _delay_loop_1(uint8_t __count) __attribute__((always_inline));
static inline void _delay_loop_2(uint16_t __count) __attribute__((always_inline));
# 80 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay_basic.h" 3
void
_delay_loop_1(uint8_t __count)
{
 __asm__ volatile (
  "1: dec %0" "\n\t"
  "brne 1b"
  : "=r" (__count)
  : "0" (__count)
 );
}
# 102 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay_basic.h" 3
void
_delay_loop_2(uint16_t __count)
{
 __asm__ volatile (
  "1: sbiw %0,1" "\n\t"
  "brne 1b"
  : "=w" (__count)
  : "0" (__count)
 );
}
# 40 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h" 2 3
# 79 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h" 3
static inline void _delay_us(double __us) __attribute__((always_inline));
static inline void _delay_ms(double __ms) __attribute__((always_inline));
# 109 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h" 3
void
_delay_ms(double __ms)
{
 uint16_t __ticks;
 double __tmp = ((11059200UL) / 4e3) * __ms;
 if (__tmp < 1.0)
  __ticks = 1;
 else if (__tmp > 65535)
 {

  __ticks = (uint16_t) (__ms * 10.0);
  while(__ticks)
  {

   _delay_loop_2(((11059200UL) / 4e3) / 10);
   __ticks --;
  }
  return;
 }
 else
  __ticks = (uint16_t)__tmp;
 _delay_loop_2(__ticks);
}
# 147 "c:/winavr-20100110/lib/gcc/../../avr/include/util/delay.h" 3
void
_delay_us(double __us)
{
 uint8_t __ticks;
 double __tmp = ((11059200UL) / 3e6) * __us;
 if (__tmp < 1.0)
  __ticks = 1;
 else if (__tmp > 255)
 {
  _delay_ms(__us / 1000.0);
  return;
 }
 else
  __ticks = (uint8_t)__tmp;
 _delay_loop_1(__ticks);
}
# 18 "main.c" 2




uint8_t __attribute__((section(".eeprom"))) eep_atas = 255;
uint8_t __attribute__((section(".eeprom"))) eep_bawah = 255;

volatile double suhu;
volatile uint8_t batas_atas;
volatile uint8_t batas_bawah;
volatile uint8_t mode = 3;
# 38 "main.c"
void bip(void);
int send(char,struct __file*);


int main(void) {
    (*(volatile uint8_t *)((0x17) + 0x20)) = 0b00000010;
    __asm__ __volatile__ ("sei" ::);
    bip();
    _delay_ms(200);
    bip();

    do {} while (!(!((*(volatile uint8_t *)(((uint16_t) &((*(volatile uint8_t *)((0x1C) + 0x20)))))) & (1 << (1)))));
    batas_atas = __eerd_byte_m8(&eep_atas);
    batas_bawah = __eerd_byte_m8(&eep_bawah);
# 65 "main.c"
    (*(volatile uint8_t *)((0x12) + 0x20)) = (1 << (2)) | (1 << (3));

    (*(volatile uint8_t *)((0x35) + 0x20)) |= ((1 << (3)) & ~(1 << (2))) | ((1 << (1)) & ~(1 << (0)));

    (*(volatile uint8_t *)((0x3B) + 0x20)) |= (1 << (7)) | (1 << (6));




    (*(volatile uint8_t *)((0x2E) + 0x20)) = (1 << (2)) | (1 << (0)) | (1 << (3));

    (*(volatile uint16_t *)((0x2A) + 0x20)) = 10800;

    (*(volatile uint8_t *)((0x39) + 0x20)) = (1 << (4));



    (*(volatile uint8_t *)((0x09) + 0x20)) = ((((11059200UL) + 8UL * (57600)) / (16UL * (57600)) -1UL) & 0xff);
    (*(volatile uint8_t *)((0x20) + 0x20)) = ((((11059200UL) + 8UL * (57600)) / (16UL * (57600)) -1UL) >> 8);

    (*(volatile uint8_t *)((0x0A) + 0x20)) = (1 << (3)) | (1 << (4)) | (1 << (7));

    (*(volatile uint8_t *)((0x20) + 0x20)) = (((1 << (7)) & ~((1 << (6))) & ~((1 << (4))) & ~((1 << (5))) & ~((1 << (3)))) | (1 << (2)) | (1 << (1))) & ~((1 << (0)));
    fdevopen(send,0);



    (*(volatile uint8_t *)((0x07) + 0x20)) = (1 << (7)) | (1 << (6));

    (*(volatile uint8_t *)((0x06) + 0x20)) = (1 << (7)) | (1 << (6)) |(1 << (5)) | (1 << (3)) | (1 << (2)) | (1 << (1)) | (1 << (0));

    _delay_ms(3000);
    while(1){
        switch(mode){
            case 0:
                if(suhu <= batas_atas && suhu >= batas_bawah){
                    __asm__ __volatile__ ("cli" ::);
                    bip();
                    _delay_ms(100);
                    bip();
                    _delay_ms(100);
                    bip();
                    __asm__ __volatile__ ("sei" ::);
                }
            case 1:
                if(suhu > batas_atas){
                    __asm__ __volatile__ ("cli" ::);
                    bip();
                    _delay_ms(100);
                    bip();
                    _delay_ms(100);
                    bip();
                    __asm__ __volatile__ ("sei" ::);
                }
                break;
            case 2:
                if(suhu < batas_bawah){
                    __asm__ __volatile__ ("cli" ::);
                    bip();
                    _delay_ms(100);
                    bip();
                    _delay_ms(100);
                    bip();
                    __asm__ __volatile__ ("sei" ::);
                }
                break;
            case 3:
                if(suhu < batas_bawah || suhu > batas_atas){
                    __asm__ __volatile__ ("cli" ::);
                    bip();
                    _delay_ms(100);
                    bip();
                    _delay_ms(100);
                    bip();
                    __asm__ __volatile__ ("sei" ::);
                }
        }
        _delay_ms(1000);
    }
    return 0;
}

int send(char ch, struct __file * f){
    if (ch == '\n')
        send('\r',0);
    do { } while ((!((*(volatile uint8_t *)(((uint16_t) &((*(volatile uint8_t *)((0x0B) + 0x20)))))) & (1 << (5)))));
    (*(volatile uint8_t *)((0x0C) + 0x20)) = ch;
    return 0;


}
void bip(void){
    unsigned short int x;
    for(x=0;x<30;x++){
        (*(volatile uint8_t *)((0x18) + 0x20)) |= (1 << (1));
        _delay_us(300);
        (*(volatile uint8_t *)((0x18) + 0x20)) &= ~(1 << (1));
        _delay_us(300);
    }
}
void __vector_11 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_11 (void){
    static unsigned char special;
    char x = (*(volatile uint8_t *)((0x0C) + 0x20));
    if(x == 27){
        special = 1;
    }else if(special && x == 91){
        special++;
    }else if(special == 2){
        special = 0;
        if(x == 65) {
            batas_atas++;

        }
        else if(x == 66){
            batas_atas--;

        }
        else if(x == 67){
            batas_bawah++;

        }
        else if(x == 68){
            batas_bawah--;

        }






    }

}
void __vector_14 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_14 (void){
    unsigned int suhu_adc;
    suhu_adc = (*(volatile uint16_t *)((0x04) + 0x20));


    suhu = ((long)suhu_adc * 269.1) / 1024.00;
}

void __vector_1 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_1 (void){

    _delay_ms(1);
    if(!((*(volatile uint8_t *)((0x10) + 0x20)) & (1 << (2))))bip();

}
void __vector_2 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_2 (void){

    uint8_t x = 0;
    uint8_t y;
    for(y = 0;y < 4;y++){
        _delay_ms(10);
        x += ((*(volatile uint8_t *)((0x10) + 0x20)) & (1 << (3)));
    }
    if(!x){
        mode++;
        mode &= 3;
        for(x = mode;x < 4;x--){
            bip();
            _delay_ms(500);
        }
        _delay_ms(1000);
    }

}

void __vector_6 (void) __attribute__ ((signal,used, externally_visible)) ; void __vector_6 (void){
    static uint8_t x;
    if (!x){
        __eeupd_byte_m8(&eep_atas,batas_atas);
        __eeupd_byte_m8(&eep_bawah,batas_bawah);
        x=5;
    }else{
        x--;
    }




    printf("\014%.3f\370C\nBatas atas:%d\370C\nBatas bawah:%d\370C\nMode:%u",suhu,batas_atas,batas_bawah,mode+1);
}
